package edu.yctc.weblog.service;

import java.util.List;
import java.util.Map;

import edu.yctc.weblog.entity.LinkDO;
import edu.yctc.weblog.entity.PageDO;
import edu.yctc.weblog.entity.ResultDO;
import edu.yctc.weblog.utils.PageQueryUtil;

public interface LinkService {

    /**
     * 查询友链的分页数据
     * 
     * @param pageQueryUtil
     * @return
     */
    public ResultDO<PageDO> getBlogLinkPage(PageQueryUtil pageQueryUtil);

    public ResultDO<Integer> getTotalLinks();

    public ResultDO<Void> saveLink(LinkDO linkDO);

    public ResultDO<LinkDO> getLinkDOById(Long id);

    public ResultDO<Void> updateLink(LinkDO linkDO);

    public ResultDO<Void> deleteBatch(Long[] ids);

    public ResultDO<Map<Integer, List<LinkDO>>> getLinksForLinkPage();

}
